package cn.sciento.onelink.error;

/**
 * @author walton
 * 错误码码和错误码信息
 */
public enum LinkErrorCode {
    LINK_OK(0,"正常"),
    LINK_BATCH_ERROR(10001,"批量操作失败"),
    LINK_BATCH_SYNC_ERROR(10002,"批量信息同步失败"),
    LINK_MSISDN_EXIST_ERROR(10003,"卡号信息已存在，不需同步"),
    LINK_UNUSABLE_PORT_ERROR(10004,"抱歉，该接口暂时不可用"),
    LINK_AI_FAIL_ERROR(10005,"AI处理失败"),
    LINK_ADDRESS_NONEXIST_ERROR(10006,"请求的地址不存在"),
    LINK_AUTH_INFO_CHANGE_ERROR(10008,"实名认证用户信息变更失败");

    private String msg;
    private int code;

    private LinkErrorCode(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getMsg(){
        return this.msg;
    }
    public int getCode(){
        return this.code;
    }
}